package com.eagleframework.component.beans;

import com.eagle.util.log.LogWriter;
import com.eagleframework.component.service.BeanReplaceSrcService;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * 使用Spring机制的Bean替换
 */
@Service
@Primary
public class BeanReplaceServiceSpring extends BeanReplaceSrcService {
    @Override
    public void say() {
        LogWriter.info("============Spring Bean Replace");
        super.say();
        LogWriter.info("============Spring Bean Replace");
    }
}
